home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 9 / Night Owl CD-ROM (NOPV9) (Night Owl Publisher) (1993).ISO / 002a / be310.zip / ERRORP.CHS < prev    next >
Text File  |  1993-06-01  |  1KB  |  44 lines

  1. /* CHESS FUNCTION(S): ERRORP.CHS -- standalone Chess program file
  2. /*              DATE: 3/1/93
  3. /*            AUTHOR: C. Schanck
  4. /*
  5. /*       DESCRIPTION:  This routine, when used from the DOS command line 
  6. /* will do error parsing on the file you ask it to edit.
  7. /*
  8. /* Suppose you have your error output in the file ERRS.
  9. /* useing the command line
  10. /*    be -cerrorp.chs errs.
  11. /* will start Bingo, load ERRS and Parse it automatically for the first
  12. /* error in ERRS.
  13. {                                
  14.    char ename[80];
  15.    int i;
  16.  
  17.    /* get the complete filename
  18.    ask("file_path",ename)
  19.    ask("file_name",ename+strlen(ename))
  20.          
  21.    return(parse_errs(ename)); /* parse those errors!!!!
  22. }
  23. parse_errs        /* this parses the error file passed in
  24. char errname[0];
  25. {  
  26.    int i;                                       
  27.    set_display(1);
  28.                       
  29.    Window_one();                    /* one window
  30.    Window_split();                  /* split window 
  31.    Window_previous();
  32.    Window_max();
  33.    
  34.    key("up_arrow");
  35.    key("up_arrow");
  36.    key("return");
  37.    Window_resize();
  38.    Setup_err_parse(errname);
  39.  
  40.    update_display();
  41.    set_display(1);
  42.  
  43.    return(Next_error());
  44. }